package com.duowan.realtime.dao.impl;

import com.duowan.realtime.dao.BaseSpringJdbcDao;
import com.duowan.realtime.dao.RealTimeDataDao;

import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author tangsicheng
 * @version 1.0
 * @since 1.0
 */
public class RealTimeDataDaoImpl extends BaseSpringJdbcDao implements RealTimeDataDao {

    @Override
    public void batchInsert(String sql, List<Map<String, Object>> data) {
        getNamedParameterJdbcTemplate().batchUpdate(sql, data.toArray(new TreeMap[0]));

    }

}
